<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common.jsp"%>
<script type="text/javascript">
function save1() {
        var pagetype="add";   
        var TOKEN=$("#TOKEN").val();
        var tName=$("#tName").val();
        var sex=$("#sex").val();
        var phone=$("#phone").val();
        var address=$("#address").val();
        var remark=$("#remark").val();
        var introduction=$("#introduction").val();
        var url=$("#url").val();
    	$.post(url,
      	{	
    		pagetype:pagetype,
    		TOKEN:TOKEN,
    		tName:tName,
    		sex:sex,
    		phone:phone,
    		address:address,
    		remark:remark,
    		introduction:introduction
		},function(data)
				{
				$.pdialog.closeCurrent();
				}
		);
    	}
function save()
{
   	  var auditForm=$("#form1");   
      auditForm.submit(); 
      $.pdialog.closeCurrent();
}
</script>
<div class="pageContent">
	<form id="form1" method="post" action="${rootDir }/daily/edit.genearch.do" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" name="TOKEN" id="TOKEN" value="${TOKEN}">
		<input type="hidden" name="pagetype" id="pagetype" value="edit">	
		<input type="hidden" name="uid" id="uid" value="${obj.id}">	
		<input type="hidden" name="url" id="url" value="${rootDir }/daily/add.genearch.do">
	<div class="pageFormContent" layoutH="56">
			<p>
			  <label>姓名：</label>
				<input id="tName"  name="tName" class="required" type="text" size="30" value="<c:out value='${obj.TName}' />" alt="请输入姓名"/>
		  	</p>
			<p>
		    <label>性别：</label>
				<select id="sex" name="sex" class="required combox">				 
					<option value="0" ${obj.sex==0?"selected":""}>男</option>
					<option value="1" ${obj.sex==1?"selected":""}>女</option>
			</select> 
		  </p>
          <p>
			  <label>电话：</label>
				<input id="phone" type="text" name="phone" class="text" size="30" value="${obj.phone}"/>
		  </p>
		   <p>
			  <label>住址：</label>
				<input id="address" type="text" name="address" class="text" size="30" value="${obj.address}" />
		  </p>
			<p>
				<label>备注：</label> 
				<input id="remark" name="remark" type="text" size="30" value="${obj.remark}" alt=""/>
			</p>
			<div class="divider"></div>
			<p>
				<label>说明：</label>
				<textarea cols="65" rows="5" id="introduction" name="introduction">${obj.introduction}</textarea>
			</p>
			
			
</div>
		<div class="formBar">

			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>淇濆瓨</span></a></li>-->
				<li><div class="buttonActive">
				<div class="buttonContent">
				<button type="button" onclick="javascript:save()">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>

	</form>
</div>
